import { createApp } from 'vue'
import './assets/base.scss'
import App from './App.vue'
import './assets/icon/iconfont.css'

import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/dist/locale/zh-cn'
import VueCookies from 'vue-cookies'

import router from './router/index'

const app = createApp(App)
app.config.globalProperties.VueCookies = VueCookies

//设置页面最大与最小宽度
app.config.globalProperties.bodyMaxWidth = 2000
app.config.globalProperties.bodyMinWidth = 1250
app.use(ElementPlus, { locale })
app.use(router)
app.use(createPinia())
app.mount('#app')

